package org.hxzon.tapestry5.util;

import org.apache.tapestry5.json.JSONObject;
import org.apache.tapestry5.util.TextStreamResponse;

public class JsonStreamResponse extends TextStreamResponse {

    public static final String defaultContentType = "text/json";

    public static final String defaultCharset = "UTF-8";

    public JsonStreamResponse(JSONObject json) {
        super(defaultContentType, defaultCharset, json.toString(true));
    }

}
